html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  margin: 0;
}

html, body {
  height: 100%;
}

body>.wrapper {
  position: relative;
  min-height: 100%;
}

#content {
  padding-bottom: 210px;
}

.radio, .checkbox {
  padding-left: 20px;
}

.checkbox.small {
  color: $darkgrey;
}

.radio label, .checkbox label {
  padding-left: 0;
  display: inline;
}

.radio-inline {
  color: $darkgrey;
}

label {
  font-weight: normal;
}

ul li {
  margin-bottom: 10px;
}

.link-button {
  background: none;
  border: none;
  color: $red;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
  &:hover {
    @extend a:hover;
  }
}

.push { height: 100px;}

a:hover {
  text-decoration: none;
}

.nav > li {
  margin-bottom: 0;
}

.nav > li > a {
  line-height: 10px;
  padding-right: 20px;
  padding-left: 20px;

  @media (max-width: $screen-sm-max) and (min-width: $screen-sm-min) {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.nav-form-link {
  input[type=submit] {
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
    color: white;
    padding: 15px 20px 15px 20px;
    @media (max-width: $screen-sm-max) and (min-width: $screen-sm-min) {
      padding-left: 15px;
      padding-right: 15px;
    }
    &:hover {
      color: #dddddd;
    }
  }
}

.navbar-wrapper {
  background: $red;

  .container {
    @media(min-width: 1201px) {
      padding-left: 40px;
    }
  }

  .navbar-inverse {
    border: 0;
    background-color: #cc0000;
    background-image: none;
  }

  .navbar {
    font-size: 13px;
    margin-top: 1.5rem;
    margin-bottom: 0px;
    z-index: 102;
  }

  .horiz-rule {
    background-color: #C40B02;
    height: 1px;
  }

  .navbar-brand {
    display: block;
    padding: 0;
    margin-top: 11px;
    height: 32px;
    width: 128px;

    @media(min-width: 768px) {
      margin-top: 0;
      height: 5rem;
      width: 20rem;
    }
    background: asset-url('EFF_Monogram-white.svg') no-repeat;
  }

  .icon-eff-action-logo {
    color: #fff;
    font-size: 29px;
  }

  .navbar-collapse {
    padding-left: 0;
  }
}

@media (min-width: 768px) {
  .navbar-nav.navbar-right:last-child {
    margin-right: 0;
  }
}

.redtop {
  background-color: $red;
  color: #fff;
  .ws-po-box {
    color: $darkgrey;
  }
}

.triangle {
  height: 57px;
  width: 100%;
  fill: #fff;
  display: block;
}

.btn-red {
  @include transition (background-color 0.3s ease-in-out, color 0.3s ease-in-out);
  font-weight: bold;
  text-transform: uppercase;
  background-color: $red;
  color: #fff;
  letter-spacing: 1px;
  font-size: 16px;
  padding: 18px 40px 15px 40px;
  -webkit-font-smoothing: antialiased;

  &:hover {
    background-color: $darkred;
    color: #fff;
  }

  &:focus {
    color: #fff;
  }
}

.btn-red-outline {
  @include transition (all 0.2s ease-in-out);
  background-color: #fff;
  color: $red;
  font-size: 14px;
  font-family: $sans-serif;
  border: 1px solid #cc0000;
  border-radius: 8px;
  -webkit-font-smoothing: antialiased;

  &:hover {
    color: #fff;
    border-color: $red;
    background-color: $red;
  }

  &.btn-sm {
    margin-top: -1px;
    padding: 3px 9px;
    margin-bottom: 10px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 11px;
    line-height: 1.1;
  }
}

.eff-logo {
  display: inline-block;
  height: 5rem;
  width: 20rem;
  background: asset-url('EFF-logo-lockup-1color.svg') no-repeat;
}

.avatar-frame {
  border: 2px solid #cc0000;
}

.avatar-frame, .avatar-frame img {
  width: 120px;
  margin-bottom: 17px;
  height: 120px;
  -webkit-border-radius: 80px; /* Saf3+, Chrome */
  border-radius: 80px; /* Opera 10.5, IE 9 */
  /*-moz-border-radius: 30px;  Disabled for FF1+ */
}

#anon-stats {
  height: 0;
  overflow: hidden;
}

.footer {
  background: #1a1a1a;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  z-index: 10;

  a {
    color: #fff;
    &:hover {
      color: #cc0000;
    }
  }

  .icon-eff-logo {
    font-size: 30px;
    line-height: 1;
  }

  .cc-notice {
    font-size: 11px;
    i {
      font-size: 25px;
    }
  }

  .triangle {
    fill: #1a1a1a;
    z-index: 10;
    position: relative;
    transform: translate(0, -57px);
  }

  .container {
    padding-top: 0;
    padding-bottom: 66px;
    background: #1a1a1a;
    margin-top: -10px;
  }

  .logo {
    a {
      display: block;
      height: 4.5rem;
      background: asset-url('EFF-logo-lockup-1color-white.svg') no-repeat;
    }
  }

  .links {
    padding: 0 0 0 15px;
    line-height: 4.5rem;
    margin: 0;
    color: #cc0000;
    font-size: 13px;

    a {
      @include transition (color 0.2s ease-in-out);
      margin-right: 13px;
    }
  }
}

.top-buffer {
  margin-top: 20px;
}

.bottom-buffer {
  margin-bottom: 20px;
}

.panel-body {
  color: $darkgrey;
}

/* ==============================================
Styles for the alert box
===============================================*/

.alert-container {
  position: relative;
  height: 0;
  overflow: visible;
}

.alert.alert-info, .alert.alert-error {
  @include box-shadow(0 0 10px 3px rgba(0, 0, 0, 0.1));
  position: fixed;
  z-index: 101;
  bottom: 0;
  right: 20px;
  background-color: $blue;

  background-image: -webkit-linear-gradient($darkgrey, lighten($darkgrey, 10%));
  background-image: -moz-linear-gradient($darkgrey, lighten($darkgrey, 10%));
  background-image: linear-gradient($darkgrey, lighten($darkgrey, 10%));

  color: #fff;
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px 30px;
  font-size: 15px;
  height: auto;
  max-width: 500px;

  @media (max-width: $screen-xs-max) {
    left: 20px;
    right: 20px;
  }

  .close {
    position: absolute;
    right: 10px;
    top: 9px;
    text-indent: -9999px;
    background: image-url('close.png');
    height: 16px;
    width: 16px;
    cursor: pointer;
  }
}

@media (max-width: 991px) {
  alert.alert-info, .alert.alert-error {
    font-size: 14px;
  }
}

.cssanimations.csstransforms
.alert.alert-info,
.cssanimations.csstransforms
.alert.alert-error {
  -webkit-animation: fade 3.5s 1.0s 1 ease forwards;
  -moz-animation:    fade 3.5s 1.0s 1 ease forwards;
  #close {
    display: none;
  }
}

@-webkit-keyframes fade {
  0%, 100% { opacity: 0; transform: translate(0, 30px); }
  10%, 90% { opacity: 1; transform: translate(0, 0); }
}
@-moz-keyframes fade {
  0%, 100% { opacity: 0; transform: translate(0, 30px); }
  10%, 90% { opacity: 1; transform: translate(0, 0); }
}

.signup-checkbox {
  font-size: 1.3rem;
  line-height: 1.5rem;
  margin-bottom: 2rem;
}

.email-signup {
  font-size: 13px;
  margin-bottom: 10px;
  margin-top: 20px;
  line-height: 1.5;

  label.radio-inline {
    margin-top: -3px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding-left: 23px;
    padding-right: 6px;
    line-height: 1.68;
    input[type=radio] {
      margin-top: 4px;
      cursor: pointer;
      margin-left: -18px;
    }
    &:first-child {
      margin-right: 1px;
    }
    &:last-child {
      margin-right: 2px;
    }
  }

  // Using a dummy selector to check for browser support for ":checked".
  // The rest of the rule will be thrown out if that fails.
  #dummy:checked::before,
  input[type="radio"] {
    position: absolute;
    clip: rect(0, 0, 0, 0);
  }

  #dummy:checked,
  input[type="radio"] + label::before {
    content: asset-data-url('radio-unchecked.png');
    top: 3px;
    left: 4px;
    position: absolute;
  }

  input[type="radio"]:checked + label::before {
    content: asset-data-url('radio-checked.png');
  }
}

/* ======================
No-js styles
========================*/

html.no-js {
  .collapse {
    display: block;
  }
  .shown-if-no-js {
    display: block;
  }
  .hidden-if-no-js {
    display: none;
  }
}

html.js {
  .shown-if-no-js {
    display: none;
  }
}

/* ======================
Email Target Copy Page
========================*/
textarea#email_target_text {
  width: 100%;
  height: 500px;
}
div#email_target_text {
  display: none;
}
.btn-red-outline.hover {
  color: #FFF;
  border-color: #C00;
  background-color: #C00;
}

/* ======================
Base font overrides
========================*/
h4 {
  line-height: 25px;
}
